package com.rex.web;


import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by frt on 2017/11/1.
 * 模板引擎
 */
@Controller
@RequestMapping(value = "/template")
public class TemplateController {

    @RequestMapping(value = "/index")
    public String index(ModelMap modelMap){
        modelMap.put("email", "fangruitao.work@foxmail.com");
        return "index";
    }
}
